package com.scut.fy.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.scut.fy.admin.model.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jy
 * @since 2021-09-04
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     *
     * @param userId
     * @return
     */
    List<SysRole> getRolesByUserId (long userId);

    /**
     *
     * @param userName
     * @return
     */
    List<SysRole> getRolesByUserName (String userName);
}
